package com.yzt.zhuju.widget.tuiview;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.Nullable;

public class TUIFTextView extends TUITextView{

    public TUIFTextView(Context context) {
        super(context);
    }

    public TUIFTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public TUIFTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        final int w = MeasureSpec.getSize(widthMeasureSpec);
        setMeasuredDimension(w, (int) (w * (10 * 1.0f / 10)));
    }
}
